﻿// -----------------------------------------------------------------------
// <copyright file="FakeContentManager.cs" company="Microsoft">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace ITU_vs_Zombies.ManualTests
{
    using Microsoft.Xna.Framework;
    using Microsoft.Xna.Framework.Content;
    using Microsoft.Xna.Framework.Graphics;

    public class FakeGame : Game
    {
        GraphicsDeviceManager graphics;
        public FakeContentManager FakeContentManager { get; private set; }
        public FakeGame() : base()
        {
            this.graphics = new GraphicsDeviceManager(this);
            this.FakeContentManager = new FakeContentManager(this);
        }
    }

    public class FakeContentManager : DrawableGameComponent
    {
        public ContentManager Content { get; private set; }

        private bool isInitialized;
        public FakeContentManager(Game game) : base(game)
        {
            this.Content = this.Game.Content;
            this.Content.RootDirectory = System.IO.Directory.GetCurrentDirectory() + @"\Content";
        }

        public override void Initialize()
        {
            base.Initialize();
            this.isInitialized = true;
        }
    }  
}
